package org.example.compare.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

@Data
public class Score implements Comparable<Score> {
    int Version;

    Long processID;//订单工序

    long positionId;//工位Id

    double total;//总分数，和项目因子相乘后累加

    double[] scoreItem = new double[20];//每个项目标准分下的分数

    @JSONField(serialize = false)
    OrderProcess pOp;

    String remark;

    String sendInfo;

    //大的在前面
    @Override
    public int compareTo(Score o) {
        return Double.compare(o.total, this.total);
    }
}
